import request from '@/utils/request'

export function getSkuList({ page, limit }) {
  return request({
    method: 'get',
    url: `/admin/product/list/${page}/${limit}`
  })
}

export function deleteSku(skuId) {
  return request({
    method: 'delete',
    url: `/admin/product/deleteSku/${skuId}`
  })
}

//上架
export function onSale(skuId) {
  return request({
    method: 'get',
    url: `/admin/product/onSale/${skuId}`
  })
}

//下架
export function canceSale(skuId) {
  return request({
    method: 'get',
    url: `/admin/product/cancelSale/${skuId}`
  })
}
